package org.dallasrowing.logbook.ui.view;

import java.util.List;

import org.dallasrowing.model.LogBookEntry;
import org.eclipse.swt.widgets.Listener;

public interface LogBookWindow {
	
	void initialFillTableEntries(int count, List<LogBookEntry> logBookEntries);
	void setCreateNewButtonAction(Runnable action);
	void setSignOutButtonAction(Runnable action);  
	void setNewDamageButtonAction(Runnable action);
	void setOpenReportsButtonAction(Runnable action);

	void openWindow();
	NewEntryWindow openNewEntryWindow();
	SignOutWindow openSignOutWindow();
	ReportNewDamageWindow openReportNewDamageWindow();
	ReportsWindow createReportsWindow();
	AdminWindow createAdminWindow();

	void showError(Exception e);
	void setTableScrollDownListener(Listener listener);
	void addAdditionalEntries(int index, List<LogBookEntry> result);
	void setAdminButtonAction(Runnable with);
}